package com.codingfuture.erp_system.mapper;

import com.codingfuture.erp_system.dto.EmpDto;
import com.codingfuture.erp_system.entity.Dep;
import com.codingfuture.erp_system.entity.Emp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmpMapper {

    Emp findById(Integer id);

    int delete(Integer id);

    int update(Emp emp);

    List<EmpDto> findByAll(EmpDto empDto);

    List<Dep> finAll();

    boolean insert(Emp emp);

    String userNameExist(String username);
}
